package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbInvoice", description="发票信息实体类")
@TableName(value = "tb_invoice")
public class TbInvoice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "发票ID")
    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "订单ID")
    @TableField(value = "orde_id")
    private Integer ordeId;

    @ApiModelProperty(value = "发票类型(1,电子发票，2纸质)")
    @TableField(value = "type")
    private Integer type;

    @ApiModelProperty(value = "发票抬头类型（企业/非企业（个人））")
    @TableField(value = "title_type")
    private String titleType;

    @ApiModelProperty(value = "发票抬头")
    @TableField(value = "title")
    private String title;

    @ApiModelProperty(value = "税号")
    @TableField(value = "title_no")
    private String titleNo;

    @ApiModelProperty(value = "邮箱")
    @TableField(value = "email")
    private String email;

    @ApiModelProperty(value = "手机号")
    @TableField(value = "phonenum")
    private String phonenum;

    @ApiModelProperty(value = "添加时间")
    @TableField(value = "addtime")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDate addtime;


}
